package com.oa.ylms.apps.entity.regulations;

import java.io.Serializable;
import java.util.Date;

import com.oa.ylms.apps.common.DateUtil;
import com.oa.ylms.apps.entity.archives.StaffInfoValue;

@SuppressWarnings("serial")
public class RegulationInfoValue implements Serializable {

	// Fields

	private Integer regulationId;
	private RegulationCategoryValue regulationCategory;
	private StaffInfoValue staffInfo;
	private String title;
	private String content;
	private Date publishTime;
	@SuppressWarnings("unused")
	private String strPublishTime;
	@SuppressWarnings("unused")
	private String strPublishTimeWithOutHour;
	@SuppressWarnings("unused")
	private String strContent;
	
	// Property accessors
	

	public RegulationCategoryValue getRegulationCategory() {
		return regulationCategory;
	}
	public Integer getRegulationId() {
		return regulationId;
	}
	public void setRegulationId(Integer regulationId) {
		this.regulationId = regulationId;
	}
	public void setRegulationCategory(RegulationCategoryValue regulationCategory) {
		this.regulationCategory = regulationCategory;
	}
	public StaffInfoValue getStaffInfo() {
		return staffInfo;
	}
	public void setStaffInfo(StaffInfoValue staffInfo) {
		this.staffInfo = staffInfo;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getPublishTime() {
		return publishTime;
	}
	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}
	public void setStrPublishTime(String strPublishTime) {
		this.strPublishTime = strPublishTime;
	}
	public String getStrPublishTime() {
		return DateUtil.toString(publishTime);
	}
	public void setStrContent(String strContent) {
		this.strContent = strContent;
	}
	public String getStrContent() {
		return content = content.replace("&lt;", "<").replace("&gt;", ">").replace("'", "\"");
	}
	public void setStrPublishTimeWithOutHour(String strPublishTimeWithOutHour) {
		this.strPublishTimeWithOutHour = strPublishTimeWithOutHour;
	}
	public String getStrPublishTimeWithOutHour() {
		return DateUtil.toStringWithoutHours(publishTime);
	}
}
